<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateUserCodeTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('user_code', function(Blueprint $table)
		{
			$table->integer('id')->primary();
			$table->integer('user_id')->nullable()->comment('用户id');
			$table->string('mobile_code', 50)->nullable()->comment('手机验证码');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('user_code');
	}

}
